package com.soledroid.Model;

public class Dish {
	
	public static final String IMAGE_PATH = "http://soledroid.huytoan.com/images/dishes/";
	
	protected int id;
	protected String name;
	protected String image;
	protected String description;
	protected String price;
	protected int stallId;
	protected boolean onPromotion;
	protected double rating;
	
	public Dish(int id, String name, String image, String description,
			String price, int stallId, boolean onPromotion, double rating) {
		super();
		this.id = id;
		this.name = name;
		this.image = IMAGE_PATH + image;
		this.description = description;
		this.price = price;
		this.stallId = stallId;
		this.onPromotion = onPromotion;
		this.rating = rating;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getPrice() {
		return price;
	}

	public void setPrice(String price) {
		this.price = price;
	}

	public int getStallId() {
		return stallId;
	}

	public void setStallId(int stallId) {
		this.stallId = stallId;
	}

	public boolean isOnPromotion() {
		return onPromotion;
	}

	public void setOnPromotion(boolean onPromotion) {
		this.onPromotion = onPromotion;
	}

	public double getRating() {
		return rating;
	}

	public void setRating(double rating) {
		this.rating = rating;
	}
	
	public String toString(){
		return name;
	}
}
